<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<h:head></h:head>
<style>
.wdc {
	font-weight: bold;
	font-style: italic;
}

.phc {
	background-color: pink;
	color: red;
	font-weight: bold;
	font-style: italic;
}

.rf-ca-boundary-dates{
	color: gray;
}

.normal-dates{
	background-color: rgb(255, 255, 255);
	color: black;
	font-weight: normal;
}
</style>
<body>
<f:view locale="#{language.locale}">
	<center>
		<h:form>
			<h:panelGrid border="1" columns="2">
				<h:panelGroup>
					<h:outputText value="#{msg['ph']}:" />
					<h:inputText value="#{createLeaveRules.name}" />
				</h:panelGroup>
				<h:panelGroup>
					<h:outputText value="#{msg['hd']}:" />
					<rich:calendar popup="true" mode="ajax" showWeeksBar="false"
				dataModel="#{calendarPublicHoliday}" datePattern="yyyy-MM-dd"
				value="#{createLeaveRules.date}"/>
					
				</h:panelGroup>
			</h:panelGrid>
			<h:commandButton action="#{createLeaveRules.create}"
				value="#{msg['create']}" type="submit" />
			<h:commandButton value="#{msg['reset']}" type="reset" />
			<br/>
			<h:outputText value="#{createLeaveRules.result}" />
		</h:form>
	</center>
</f:view>
</body>
</html>
